<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//命名函数
			function test() {

			}
			//匿名函数
			const fn = function(a, b) {
				return a + b;
			}

			let c = fn(1, 2);
			// console.log(c);


			const fn2 = (a, b) => a + b;
			let d = fn2(6, 5);
			console.log(d);
		</script>
	</body>
</html>
